home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / a_man / cat7 / icmp.z / icmp
Encoding:
Text File  |  1998-10-20  |  2.9 KB  |  67 lines

  1.  
  2.  
  3.  
  4. IIIICCCCMMMMPPPP((((7777PPPP))))                                                              IIIICCCCMMMMPPPP((((7777PPPP))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      icmp - Internet Control Message Protocol
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      ####iiiinnnncccclllluuuuddddeeee <<<<ssssyyyyssss////ssssoooocccckkkkeeeetttt....hhhh>>>>
  13.      ####iiiinnnncccclllluuuuddddeeee <<<<nnnneeeettttiiiinnnneeeetttt////iiiinnnn....hhhh>>>>
  14.  
  15.      ssss ==== ssssoooocccckkkkeeeetttt((((AAAAFFFF____IIIINNNNEEEETTTT,,,, SSSSOOOOCCCCKKKK____RRRRAAAAWWWW,,,, pppprrrroooottttoooo))));;;;
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      ICMP is the error and control message protocol used by IP and the
  19.      Internet protocol family.  It may be accessed through a "raw socket" for
  20.      network monitoring and diagnostic functions.  The _p_r_o_t_o parameter to the
  21.      socket call to create an ICMP socket is obtained from _g_e_t_p_r_o_t_o_b_y_n_a_m_e(3N).
  22.      ICMP sockets are connectionless, and are normally used with the _s_e_n_d_t_o
  23.      and _r_e_c_v_f_r_o_m calls, though the _c_o_n_n_e_c_t(2) call may also be used to fix
  24.      the destination for future packets (in which case the _r_e_a_d(2) or _r_e_c_v(2)
  25.      and _w_r_i_t_e(2) or _s_e_n_d(2) system calls may be used).
  26.  
  27.      Outgoing packets automatically have an IP header prepended to them (based
  28.      on the destination address).  Incoming packets are received with the IP
  29.      header and options intact.
  30.  
  31. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  32.      A socket operation may fail with one of the following errors returned:
  33.  
  34.      [EISCONN]      when trying to establish a connection on a socket which
  35.                     already has one, or when trying to send a datagram with
  36.                     the destination address specified and the socket is
  37.                     already connected;
  38.  
  39.      [ENOTCONN]     when trying to send a datagram, but no destination address
  40.                     is specified, and the socket hasn't been connected;
  41.  
  42.      [ENOBUFS]      when the system runs out of memory for an internal data
  43.                     structure;
  44.  
  45.      [EADDRNOTAVAIL]
  46.                     when an attempt is made to create a socket with a network
  47.                     address for which no network interface exists.
  48.  
  49. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  50.      send(2), recv(2), intro(3), inet(7F), ip(7P)
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.